package com.cn.xiaonuo.slbfinances.slbagents.controller;

import com.cn.xiaonuo.common.entity.BusinessMessage;
import com.cn.xiaonuo.slbfinances.slbagents.service.ICoverageAgentShopService;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
@RestController
public class CoverageAgentShopController {

    @Resource
    private ICoverageAgentShopService coverageAgentShopService;

    @ApiOperation(value = "代理/提成/进度查询--查询用户信息", notes = "代理/提成/进度查询--查询用户信息")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "slbId", value = "用戶ID", example = "10086"),
            @ApiImplicitParam(name = "phone", value = "电话号码", example = "13800138000")
    })
    @RequestMapping(value ="/api/agentShopIndex/queryAccountInfo", method = RequestMethod.POST)
    public BusinessMessage queryAccountInfo(String slbId, String phone){
        return coverageAgentShopService.queryAccountInfo(slbId,phone);
    }
}
